-- GENERATED SPELL FOR [Stormforged Loreseeker] --


function spell0_29843(pUnit, Event) --@Lightning Fury,n/a--
pUnit:FullCastSpellOnTarget(61561,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29843', 609, 1)
end

function spell1_29843(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29843', 0, 1)
end

function Sorts_29843(pUnit, Event)
local choix_sorts_29843 = math.random(0, 1)
if choix_sorts_29843 == 0 then
pUnit:RegisterEvent('spell0_29843', 1, 1)
end
if choix_sorts_29843 == 1 then
pUnit:RegisterEvent('spell1_29843', 1, 1)
end
end

function mob29843_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29843', math.random(1500, 3000), 1)
end

function mob29843_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29843_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29843_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29843, 1, 'mob29843_Action')
RegisterUnitEvent(29843, 2, 'mob29843_Leave')
RegisterUnitEvent(29843, 3, 'mob29843_Kill')
RegisterUnitEvent(29843, 4, 'mob29843_Die')
